mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
telegram: refreshing notification settings on account attachment
This commit is contained in:
parent
47eee7d166
commit
e49f69a4e6
5 changed files with 11 additions and 5 deletions
|
@ -63,6 +63,8 @@ export const useNotificationSettingsRequest = () => {
|
|||
[data, mutate],
|
||||
);
|
||||
|
||||
const refresh = useCallback(() => mutate(), [mutate]);
|
||||
|
||||
return {
|
||||
isLoading,
|
||||
error,
|
||||
|
@ -75,6 +77,7 @@ export const useNotificationSettingsRequest = () => {
|
|||
? parseISO(data?.last_date)
|
||||
: undefined,
|
||||
enabled: !!data?.enabled && (data.flow || data.comments),
|
||||
refresh,
|
||||
update,
|
||||
updateError,
|
||||
isUpdating,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue