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

Using || in an if statement error #532

Closed
NoahWilson4 opened this issue Apr 27, 2017 · 2 comments
Closed

Using || in an if statement error #532

NoahWilson4 opened this issue Apr 27, 2017 · 2 comments

Comments

@NoahWilson4
Copy link

Using || in an {{#if}} statement results in an error: "if_block.mount is not a function"

https://svelte.technology/repl?version=1.18.1&gist=5d0b636c8f48d7adf2dec15ba5e2fbe6

@PaulBGD
Copy link
Member

PaulBGD commented Apr 27, 2017

On line 4 we need parenthesis around

state.name || state.foo === "bar"

@Rich-Harris
Copy link
Member

Fixed in 1.18.2 — thanks

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

3 participants