This surely cannot be correct.

Sort:
rontogany

My opponent resigned when the game was drawn. I only had my king left and no other pieces,yet i was given the win.

tygxc

Yes, that is a bug.

'5.1.2 The game is lost by the player who declares he/she resigns (this immediately ends the game), unless the position is such that the opponent cannot checkmate the player’s king by any possible series of legal moves. In this case the result of the game is a draw.'

https://handbook.fide.com/chapter/E012023