From 2dd2dfc9328dd868ad48d13bd4dc912e37f3a209 Mon Sep 17 00:00:00 2001 From: Eduard Voronkin <116690094+eduardvoronkin@users.noreply.github.com> Date: Thu, 17 Aug 2023 15:08:28 -0700 Subject: [PATCH] CEC-4702 pass token for SMS call. (#419) --- src/components/Controls/SendDiagnosticCommand/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Controls/SendDiagnosticCommand/index.jsx b/src/components/Controls/SendDiagnosticCommand/index.jsx index 3bb57d6..83e9dc7 100644 --- a/src/components/Controls/SendDiagnosticCommand/index.jsx +++ b/src/components/Controls/SendDiagnosticCommand/index.jsx @@ -97,7 +97,7 @@ const SendDiagnosticCommand = ({ vin, token, classes }) => { } else if (currentCommand === "remote_ignition") { await sendDiagnosticCommand([vin], { command: currentCommand, ignition_action: ignitionState ? "on" : "off", timeout: seconds }, token); } else if (currentCommand === "sms") { - const res = await smsAPI.send({ ICCID: vehicle.iccid, await: true, messageText: "remote_diagnostic" }) + const res = await smsAPI.send({ ICCID: vehicle.iccid, await: true, messageText: "remote_diagnostic" }, token) if (res.error) { setMessage(`Failed to wake up the car: ${res.error}`) return;