|
@@ -421,7 +421,7 @@ const ShareClient = forwardRef<{ open: () => void }, {}>(function ShareClient(pr
|
|
|
|
|
|
const [currentPhoneIndex, setCurrentPhoneIndex] = useState(0);
|
|
|
|
|
|
- const shareUrl = `${globalThis.config.NEXT_PUBLIC_SHARE_URL}/br/sharecwbr?turntable=${currentWheel.id}&user=${user.id}&time=${currentWheel.end_time}`;
|
|
|
+ const shareUrl = `${globalThis.config?.NEXT_PUBLIC_SHARE_URL ?? ""}/br/sharecwbr?turntable=${currentWheel.id}&user=${user.id}&time=${currentWheel.end_time}`;
|
|
|
const url = encodeURIComponent(`${shareUrl}`);
|
|
|
const text = encodeURIComponent(`Receba 100 BRL de graça,Pix SAQUE RÁPIDO`);
|
|
|
const t = useTranslations();
|