Skip to main content
Known Participant
September 14, 2019
Question

converting my string to an integer jsx

  • September 14, 2019
  • 2 replies
  • 522 views

I figured this out.. trying to delete the post since it was not useful

This topic has been closed for replies.

2 replies

Community Expert
September 16, 2019

Hi kyleo94921011,

you said: …I attached more code above.

 

I cannot see any code at all. What happened?

 

Regards,
Uwe Laubender
( ACP )

brian_p_dts
Community Expert
Community Expert
September 14, 2019

In the exportSwatch function, how are you parsing the object in the Json function before setting your "str" variable, if at all? That's what I'd look at. 

 

What number is alerting inside the exportSwatch function?

 

I feel I am missing other key snippets to be able to pinpoint the problem. Right now it looks like you are just passing 1 to your export function and it is returning the same thing. 

Known Participant
September 14, 2019

I was told I didn't have to parse the JSON string in jsx... is that not correct? I attached more code above.