mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-05 07:07:50 +02:00
MISC: enforce eslint react checks (#640)
This commit is contained in:
committed by
GitHub
parent
91bfb154b6
commit
1d5a735941
@@ -801,5 +801,5 @@ let customElementKey = 0;
|
||||
* so the game won't crash and the user gets sensible messages.
|
||||
*/
|
||||
export function wrapUserNode(value: unknown) {
|
||||
return <CustomBoundary key={`PlayerContent${customElementKey++}`} children={value as React.ReactNode} />;
|
||||
return <CustomBoundary key={`PlayerContent${customElementKey++}`}>{value}</CustomBoundary>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user