fix: evolution refresh button

This commit is contained in:
TrèsAbhi committed 2023-10-12 12:07:45 -05:00
1 parent bcd3a00f91
commit 7447ccc487
5 files changed
+41 -50

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ export default function resolvePeriodFromButton(
let end: number;
const url = new URL(`https://example.com/${interaction.customId}`);
const path = url.pathname.split('/');
const periodSubcommand = path[2] as PeriodType;
const periodSubcommand = path.at(-1) as PeriodType;
if (periodSubcommand === 'custom') {
const startRaw = parseInt(url!.searchParams.get('start')!);