From 30bc9c96dadc6c685a90dfc1c9e659d3b2bb3113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Fri, 30 Jul 2021 05:37:06 +0100 Subject: [PATCH] fix: missing timestamp variable fix: remove tags array --- lib/plugins.js | 2 +- .../src/pages/OperatorInfo/CustomSMS/CustomSMSModal.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/plugins.js b/lib/plugins.js index 1c62cf7e..a3898d4d 100644 --- a/lib/plugins.js +++ b/lib/plugins.js @@ -361,7 +361,7 @@ function plugins (settings, deviceId) { const phone = tx.phone const timestamp = dateFormat(new Date(), 'UTC:HH:MM Z') - return sms.getCashOutReadySms(deviceId, phone, code) + return sms.getCashOutReadySms(deviceId, phone, timestamp) .then(msg => { const rec = { sms: msg diff --git a/new-lamassu-admin/src/pages/OperatorInfo/CustomSMS/CustomSMSModal.js b/new-lamassu-admin/src/pages/OperatorInfo/CustomSMS/CustomSMSModal.js index ca8a4d85..37201990 100644 --- a/new-lamassu-admin/src/pages/OperatorInfo/CustomSMS/CustomSMSModal.js +++ b/new-lamassu-admin/src/pages/OperatorInfo/CustomSMS/CustomSMSModal.js @@ -28,7 +28,6 @@ const getErrorMsg = (formikErrors, formikTouched, mutationError) => { const prefill = { smsCode: { - tags: [], validator: Yup.string() .required('The message content is required!') .trim() @@ -46,7 +45,6 @@ const prefill = { }) }, cashOutDispenseReady: { - tags: [], validator: Yup.string() .required('The message content is required!') .trim()