From d0ad5c9965635170b41db99b2c34bb2a598bc612 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Mon, 26 Jun 2023 12:33:00 +0300 Subject: [PATCH] fix: notification ssr --- apps/web/stores/validation/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/stores/validation/index.ts b/apps/web/stores/validation/index.ts index 6ac12f9..bb166e7 100644 --- a/apps/web/stores/validation/index.ts +++ b/apps/web/stores/validation/index.ts @@ -27,7 +27,7 @@ export default class Validation { public removeError = ({ key }: Pick) => { const error = [...this.errors].find((x) => x.key === key); if (error) this.errors.delete(error); - if (this.errors.size === 0) notification.destroy(this.params.err_key); + if (this.errors.size === 0 && !isServer()) notification.destroy(this.params.err_key); }; public setError = ({ key, message, silent }: ValidationParams) => {