Skip to content

Commit cbec1e3

Browse files
committed
/errors: Empty args are not missing arguments
e.g. the hydration diff will always produce `/errors/418?args[]=` in prod because prod doesn't have diffs.
1 parent 9000e6e commit cbec1e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/MDX/ErrorDecoder.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function replaceArgs(
1111
return msg.replace(/%s/g, function () {
1212
const arg = argList[argIdx++];
1313
// arg can be an empty string: ?args[0]=&args[1]=count
14-
return arg === undefined || arg === '' ? replacer : arg;
14+
return arg === undefined ? replacer : arg;
1515
});
1616
}
1717

0 commit comments

Comments
 (0)