Skip to content

Commit

Permalink
Merge pull request #39 from andriyor/hotfix/ssr
Browse files Browse the repository at this point in the history
fix for SSR
  • Loading branch information
ericblade authored Jul 19, 2024
2 parents 441c08e + 770da00 commit 6b0266b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,6 @@ class CurrencyInput extends React.Component<CurrencyInputProps, CurrencyInputSta
export default CurrencyInput;
// TODO: quick way to enable/disable debugging on the fly, but should really be removed when we are
// certain of stability.
if (typeof 'window' !== 'undefined') {
if (typeof window !== 'undefined') {
window['CurrencyInput'] = CurrencyInput;
}

0 comments on commit 6b0266b

Please sign in to comment.