Fix wrong await statement

This commit is contained in:
Joshen Lim committed 2022-08-10 17:39:54 +08:00
1 parent 97c3f50e4f
commit a1b99b8b13
1 file changed
+2 -2
@@ -27,9 +27,9 @@ const RedirectDomains = () => {
setSubmitting(true)
try {
const payload = URI_ALLOW_LIST_ARRAY
await payload.push(values.domain)
payload.push(values.domain)
// convert payload to comma seperated string and update
authConfig.update({ URI_ALLOW_LIST: payload.toString() })
await authConfig.update({ URI_ALLOW_LIST: payload.toString() })
setSubmitting(false)
setOpen(false)
ui.setNotification({ category: 'success', message: 'Successfully added domain' })