I loaded your function, and my console shows this array:
[ 1, 1, 2, 3, 5, 8, 13 ]
It does look like your loop is terminating at the condition you’ve set - but the condition isn’t doing what you think it is.
The challenge asks for the sum of Fibonacci numbers less than or equal to num, but your loop is generating the first num Fibonacci numbers (plus one more).
In your loop, i is the index of the arr array. So i <= num doesn’t say "Loop while the next number is less than or equal to num", but instead says "Loop while the last index of arr is less than or equal to num".