1
0
Fork 0
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:
Fedor Katurov 2023-03-13 18:48:38 +06:00
parent 47eee7d166
commit e49f69a4e6
5 changed files with 11 additions and 5 deletions

View file

@ -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,