Skip to content

Commit da2b339

Browse files
committed
fix delete/remind bot toasts
1 parent cfef5e5 commit da2b339

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const toastUpsertSuccessMessages = (toaster, upsertResponseData, dataKey,
3030
for (const key in SCHEDULERS) {
3131
const { hasMention, scheduledAtKey, mention } = SCHEDULERS[key]
3232
if (hasMention(itemText)) {
33-
const scheduledAt = upsertResponseData[dataKey]?.result?.[scheduledAtKey]
33+
const scheduledAt = upsertResponseData[dataKey]?.payerPrivates?.result?.[scheduledAtKey]
3434
const options = { persistOnNavigate: dataKey !== 'upsertComment' }
3535
if (scheduledAt) {
3636
toaster.success(`${mention} bot will trigger at ${new Date(scheduledAt).toLocaleString()}`, options)

0 commit comments

Comments
 (0)