Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

Commit 05ef859

Browse files
committed
Fixing Money field propTypes warning
1 parent feb5917 commit 05ef859

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fields/types/money/MoneyField.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ module.exports = Field.create({
77
propTypes: {
88
onChange: PropTypes.func.isRequired,
99
path: PropTypes.string.isRequired,
10-
value: PropTypes.number,
10+
value: PropTypes.oneOfType([
11+
PropTypes.string,
12+
PropTypes.number,
13+
]),
1114
},
1215
statics: {
1316
type: 'Money',

0 commit comments

Comments
 (0)