Update src/toasts/ServerLimitToast.tsx

This commit is contained in:
Travis Ralston 2021-02-24 11:20:58 -07:00 committed by GitHub
parent c78d1c49ab
commit c11c8c2faf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ export const showToast = (limitType: string, onHideToast: () => void, adminConta
acceptLabel: _t("Ok"),
onAccept: () => {
hideToast()
if (onHideToast) { onHideToast() }
if (onHideToast) onHideToast();
},
},
component: GenericToast,