diff --git a/pages/home/home.vue b/pages/home/home.vue index 1169ce5..b5e8c8c 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -116,6 +116,14 @@ async function changeTeam({ teamId, corpId, corpName }) { } } +function safeDecode(value) { + try { + return decodeURIComponent(value || ""); + } catch (error) { + return value || ""; + } +} + function parsePendingAction(options = {}) { const type = options.type || ""; if (type === "experienceCoupon" && options.issueId && options.corpId) { @@ -136,8 +144,8 @@ function parsePendingAction(options = {}) { corpId: normalizeCorpId(options.corpId), teamId: options.teamId || "", customerId: options.customerId, - name: options.name || "", - corpName: options.corpName || "", + name: safeDecode(options.name), + corpName: safeDecode(options.corpName), appointmentId: options.appointmentId || "", month: options.month || "", externalUserId: options.externalUserId || "",