Last active
July 1, 2016 14:42
-
-
Save wmira/d96dfee7e463e52eba8f38d770e65e4d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//code can be null/undefined so lets fix it | |
export const formatOrderCode = ( code ) => { | |
if ( code !== null && code !== undefined ) { | |
return code.toUpperCase(); | |
} | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment