Fix parameters being copied when they didn't exist

This commit is contained in:
dginovker 2020-12-10 12:55:36 -05:00
parent 0ed52f4f91
commit d682102c1d
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ hiscores.filter = (result) => {
}
hiscores.getFiltersAsURLparams = () => {
return `?iron=${getParam("iron")}?hciron=${getParam("hciron")}?ultiron=${getParam("ultiron")}?maxXP=${getParam("maxXP")}`;
return getParam("iron") ? `?iron=${getParam("iron")}?hciron=${getParam("hciron")}?ultiron=${getParam("ultiron")}?maxXP=${getParam("maxXP")}` : "";
}
hiscores.formatName = (name, ironStatus = 0, xpRate = 10, aposS = false,) => {