Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tip property in bill.go does not update #1

Open
SamuelAl opened this issue Jul 5, 2021 · 1 comment
Open

tip property in bill.go does not update #1

SamuelAl opened this issue Jul 5, 2021 · 1 comment

Comments

@SamuelAl
Copy link

SamuelAl commented Jul 5, 2021

Hello,
For some reason the tip property in bill.go does not update when bill.updateTip is called from promptOptions. I have even copy-pasted your code and still no update. Any idea why this would happen?
Thank you so much for all the videos you are doing.

@nemwark
Copy link

nemwark commented Oct 13, 2021

the update tip signature should be
func (b *bill) updateTip(tip float64)
not
func (b bill) updateTip(tip float64)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants