diff options
author | bobzel <zzzman@gmail.com> | 2025-02-26 20:48:51 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-02-26 20:48:51 -0500 |
commit | a9a1a6a507616a77f70d6525dab5027f5b7a60e6 (patch) | |
tree | 97a37fdcdfed7bb2f0635b88b543ad525b58de14 /src/client/util/SettingsManager.tsx | |
parent | fa8122df7467af3d4410b7daf1cd75227a53fd96 (diff) |
added typing to PostToServer calls. made smartDraw popup create images locally.
Diffstat (limited to 'src/client/util/SettingsManager.tsx')
-rw-r--r-- | src/client/util/SettingsManager.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/util/SettingsManager.tsx b/src/client/util/SettingsManager.tsx index 5d041f7b4..6ea242fc3 100644 --- a/src/client/util/SettingsManager.tsx +++ b/src/client/util/SettingsManager.tsx @@ -598,7 +598,8 @@ export class SettingsManager extends React.Component<object> { }); } else { const passwordBundle = { curr_pass: this._curr_password, new_pass: this._new_password, new_confirm: this._new_confirm }; - const { error } = await Networking.PostToServer('/internalResetPassword', passwordBundle); + const reset = await Networking.PostToServer('/internalResetPassword', passwordBundle); + const { error } = reset as { error: { msg: string }[] }; runInAction(() => { this._passwordResultText = error ? 'Error: ' + error[0].msg + '...' : 'Password successfully updated!'; }); |