| ... | @@ -27,7 +27,7 @@ pub fn main() !void { | ... | @@ -27,7 +27,7 @@ pub fn main() !void { |
| 27 | | 27 | |
| 28 | const comment = try inquirer.forString(out, in, "Any comments on your purchase experience?", alloc, "Nope, all good!"); | 28 | const comment = try inquirer.forString(out, in, "Any comments on your purchase experience?", alloc, "Nope, all good!"); |
| 29 | | 29 | |
| 30 | if (std.mem.eql(u8, comment, "")) { | 30 | if (!std.mem.eql(u8, comment, "Nope, all good!")) { |
| 31 | _ = try inquirer.forEnum(out, in, "For leaving a comment, you get a freebie:", alloc, enum { Cake, Fries }, null); | 31 | _ = try inquirer.forEnum(out, in, "For leaving a comment, you get a freebie:", alloc, enum { Cake, Fries }, null); |
| 32 | } | 32 | } |
| 33 | } | 33 | } |