Skip to content

Commit

Permalink
fix display of objects in the documentation error page (#11261)
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas authored Oct 2, 2023
1 parent 9229e0e commit 3a3ee44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/shared/DisplayClientError.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function ErrorDetails({ version, messageId, args }) {
const errorMessage = useMemo(() => {
return data?.message
? args.reduce(
(/** @type{string} */ acc, arg) => acc.replace('%s', String(arg)),
(/** @type{string} */ acc, arg) => acc.replace(/%[sdfo]/, String(arg)),
String(data.message)
)
: null;
Expand Down

0 comments on commit 3a3ee44

Please sign in to comment.