rn-tourguide icon indicating copy to clipboard operation
rn-tourguide copied to clipboard

"undefined is not an object" when tour has ended

Open pke opened this issue 1 year ago • 2 comments

https://github.com/xcarpentier/rn-tourguide/blob/72ae702217f311d5d5fbf0323e63022b383ba30b/src/components/Modal.tsx#L196

currentStep! is the culprit. It is undefined at that moment and should be better currentStep?.tooltipBottomOffset

The question is, why the code is executed after the tour has finished.

pke avatar Oct 27 '22 10:10 pke