@@ -350,9 +350,9 @@ function cardString(template, components) {
351 if (hasBackground) {
351 if (hasBackground) {
352 var templateCardBackground = (template && typeof template["card-background"] === "string") ? template["card-background"] : "";
352 var templateCardBackground = (template && typeof template["card-background"] === "string") ? template["card-background"] : "";
353− var backgroundElements0 = undefined;
353+ var backgroundElements0;
354− var backgroundElements1 = undefined;
354+ var backgroundElements1;
355− if (template && typeof template["card-background"] === "object"&& (template["card-background"]["type"] === "color" || template["card-background"]["type"] === "gradient")) {
355+ if (template && typeof template["card-background"] === "object" && (template["card-background"]["type"] === "color" || template["card-background"]["type"] === "gradient")) {
356 if (template["card-background"]["elements"][0] !== undefined) {
356 if (template["card-background"]["elements"][0] !== undefined) {
357 backgroundElements0 = '"%1"'.arg(template["card-background"]["elements"][0]);
357 backgroundElements0 = '"%1"'.arg(template["card-background"]["elements"][0]);