0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00

Fixed "Update support address" button showing error on success

no issue

- the API response is now empty so returning the parsed response is null/undefined resulting in `<GhTaskButton>` showing a failure state
- switched to returning an enforced `true` value, if there was an error that's handled by the try/catch
This commit is contained in:
Kevin Ansfield 2022-05-24 17:52:25 +01:00
parent 3f95a5e00f
commit a90f9d275c

View file

@ -390,7 +390,7 @@ export default ModalComponent.extend({
}
});
// this.toggleProperty('showSupportAddressConfirmation');
return response;
return true;
} catch (e) {
// Failed to send email, retry
return false;